package ooday01;

public class StudentTest {
    public static void main(String[] args) {
       //创建一个学生对象
        Student zg=new Student();
        //访问成员变量
        zg.name="张光";
        zg.age=25;
        zg.className="jsd2024";
        zg.stuId="001";
        //调用成员方法
        zg.sayHi();
        zg.study();
        zg.playWith("虎哥");

        Student ll=new Student();
        ll.name="李林";
        ll.age=53;
        ll.className="200404";
        ll.stuId="002";
        ll.study();
        ll.sayHi();
        ll.playWith("爱丽");

        Student mjq=new Student();
        mjq.name="马嘉祺";
        mjq.age=11;
        mjq.stuId="003";
        mjq.className="jsd2311";
        mjq.sayHi();
        mjq.study();
        mjq.playWith("马嘉祺");


        //1)创建了一个学生对象
        //2)给所有成员变量赋默认值,默认值为空;
        Student zl = new Student();
        zl.study();
        zl.sayHi();
        zl.playWith("张光");

    }
}
